﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Model.AntiFake
{
    public class QueryCodeLogModel
    {

        public QueryCodeLogModel()
        { }
        #region Model
        private int _id;
        private string _fw_code;
        private int _querytype;
        private string _queryvalue;
        private DateTime _querytime;
        private string _querymessage;
        private bool _valid;
        private string _queryprovince;
        private string _querycity;
        private int _productid;
        /// <summary>
        /// 
        /// </summary>
        public int ID
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 防伪码
        /// </summary>
        public string Fw_Code
        {
            set { _fw_code = value; }
            get { return _fw_code; }
        }
        /// <summary>
        /// 查询方式  0 表示网站 1 wap 2 短信 3语音 4 微信  
        /// </summary>
        public int QueryType
        {
            set { _querytype = value; }
            get { return _querytype; }
        }
        /// <summary>
        /// 查询值(查询者) 如果是网站查询则记录ip  手机查询则记录 手机号 依次类推
        /// </summary>
        public string QueryValue
        {
            set { _queryvalue = value; }
            get { return _queryvalue; }
        }
        /// <summary>
        /// 查询时间
        /// </summary>
        public DateTime QueryTime
        {
            set { _querytime = value; }
            get { return _querytime; }
        }
        /// <summary>
        /// 返回信息
        /// </summary>
        public string QueryMessage
        {
            set { _querymessage = value; }
            get { return _querymessage; }
        }
        /// <summary>
        /// 是否有效 1 表示有效 0 表示无效 
        /// </summary>
        public bool Valid
        {
            set { _valid = value; }
            get { return _valid; }
        }
        /// <summary>
        /// 查询省份
        /// </summary>
        public string QueryProvince
        {
            set { _queryprovince = value; }
            get { return _queryprovince; }
        }
        /// <summary>
        /// 查询城市
        /// </summary>
        public string QueryCity
        {
            set { _querycity = value; }
            get { return _querycity; }
        }
        /// <summary>
        /// 产品编号 在查询过程中赋值
        /// </summary>
        public int ProductId
        {
            set { _productid = value; }
            get { return _productid; }
        }
        #endregion Model


    }
    /// <summary>
    /// 详细查询 查询统计
    /// </summary>
    public class QueryCodeLogModel_Sel
    {
        /// <summary>
        /// 查询 开始时间
        /// </summary>
        public string StartTime { get; set; }
        /// <summary>
        /// 查询 结束时间
        /// </summary>
        public string EndTime { get; set; }
        /// <summary>
        /// 查询 查询类型
        /// </summary>
        public string QueryType { get; set; }
        /// <summary>
        /// 查询 结果
        /// </summary>
        public string Valid { get; set; }
        /// <summary>
        /// 查询 防伪码
        /// </summary>
        public string Fw_Code { get; set; }
        /// <summary>
        /// 查询 地址
        /// </summary>
        public string Address { get; set; }
        /// <summary>
        /// 查询 产品名称
        /// </summary>
        public string ProductName { get; set; }
    }


    /// <summary>
    /// 详细查询 异常查询统计
    /// </summary>
    public class QueryCodeLogAnomaly_Sel
    {
        /// <summary>
        /// 查询 开始时间
        /// </summary>
        public string StartTime { get; set; }
        /// <summary>
        /// 查询 结束时间
        /// </summary>
        public string EndTime { get; set; }
        /// <summary>
        /// 查询 防伪码
        /// </summary>
        public string Fw_Code { get; set; }
        /// <summary>
        /// 查询 产品编号
        /// </summary>
        public string ProductId { get; set; }
        /// <summary>
        /// 查询 产品名称
        /// </summary>
        public string ProductName { get; set; }

    }
}
